class TrainingsController < ApplicationController
	def new
		render "new"
	end

	def create_training
		training = Training.new
		training.user_name = params[:userName]
		training.tel_phone = params[:telPhone]
		training.business_title = params[:company_name]
		training.business_desc = params[:industry]
		training.created_at = Time.now
		training.updated_at = Time.now
		training.publish_status = 1
		training.save
		render "success"
	end
end
